新建台标
服务地址
http://api-az-cn.danghongyun.com/rest
请求方法
POST
请求参数
参数 | 说明 | 类型 | 是否必须 |
---|---|---|---|
accessKey | 访问接口的accessKey | String | 必选 |
action | API名称,此接口为 "liveLogoCreate" | String | 必选 |
version | API版本,目前必须为 2.0 | String | 必选 |
signature | 签名,请参考签名规则 | String | 必选 |
timestamp | api调用时间戳,1970年1月1日以来的毫秒数,如1466488681033 | String | 必选 |
name | logo名称 | String | 必选 |
uri | 台标路径,如:bj-hsy-images/kii721n6/watermarkLive/65112b7ae7394313a679020c3543cae9.jpg | String | 必选 |
width | 台标宽度 | Integer | 必选 |
height | 台标高度 | Integer | 必选 |
offsetWidth | 台标左上角顶点水平偏移 | Integer | 必选 |
offsetHeight | 台标左上角顶点垂直偏移 | Integer | 必选 |
opacity | 台标透明度,0~100,100代表不透明,默认100 | Integer | 可选 |
resize | 台标缩放比例,1~100,100代表不缩放,默认100 | Integer | 可选 |
响应示例
{
"code": 0,
"success": true,
"message": "operation success",
"result": {
"httpUrl": "http://kii721n6.images.danghongyun.com/watermarkLive/65112b7ae7394313a679020c3543cae9.jpg",
"offsetHeight": 1,
"name": "test logo",
"width": 200,
"offsetWidth": 1,
"resize": 100,
"id": "afe8c827f18044c8942524eb7738f693",
"opacity": 100,
"userId": 805,
"uri": "bj-hsy-images/kii721n6/watermarkLive/65112b7ae7394313a679020c3543cae9.jpg",
"height": 200
}
}
字段说明
字段 | 说明 |
---|---|
id | 唯一标识 |
name | 台标名称 |
userId | 用户id |
width | 台标宽度 |
height | 台标高度 |
offsetWidth | 台标左上角距离视频左边的距离(宽度以640为基准,实际输出会按照倍率计算) |
offsetHeight | 台标左上角距离视频顶部的距离(高度以360为基准,实际输出会按照倍率计算) |
opacity | 透明度 |
resize | 基于原图的放大倍数,例:100为保持原图大小 50为缩小一倍 |
httpUrl | 台标访问地址 |